﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Configuration;
using System.Configuration;
using System.Security.Cryptography.X509Certificates;
using PSE.Framework.Configuration;

namespace PSE.Framework.Common.Security.Services.Configuration
{
    public class CertificateConfigurationElement : BaseConfigurationElement
    {

        [StringValidator(MinLength = 0)]
        [ConfigurationProperty("findValue")]
        public string FindValue
        {
            get
            {
                return (string)this["findValue"];
            }
            set
            {
                this["findValue"] = value;
            }
        }

        [ConfigurationProperty("storeLocation")]
        public StoreLocation StoreLocation
        {
            get
            {
                return (StoreLocation)this["storeLocation"];
            }
            set
            {
                this["storeLocation"] = value;
            }
        }

        [ConfigurationProperty("storeName")]
        public StoreName StoreName
        {
            get
            {
                return (StoreName)this["storeName"];
            }
            set
            {
                this["storeName"] = value;
            }
        }

        [ConfigurationProperty("x509FindType")]
        public X509FindType X509FindType
        {
            get
            {
                return (X509FindType)this["x509FindType"];
            }
            set
            {
                this["x509FindType"] = value;
            }
        }

    }
}
